package five_class_design_creational_patterns.four_SingletonPattern;

/**
 * @author 北巷_东坡
 * @date 2022/10/16 8:47
 * @computer 10741
 */
public class Client_LDP {
    public static void main(String[] args) {
//        创建实例
        Singieton_LDP s1=Singieton_LDP.getInstance();
        Singieton_LDP s2=Singieton_LDP.getInstance();
        Singieton_LDP s3=Singieton_LDP.getInstance();
        Singieton_LDP s4=Singieton_LDP.getInstance();
//        对比结果
        System.out.println("s1 == s2:"+(s1 == s2));
        System.out.println("s2 == s3:"+(s2 == s3));
        System.out.println("s3 == s4:"+(s3 == s4));
    }
}
